#include "award.h"

award::award(QGraphicsPixmapItem *parent) : QGraphicsPixmapItem(parent)
{

}
award::award(QPixmap _pixmap,QPoint _pos, int _awardType)
{
    this->setPixmap(_pixmap);
    this->setPos(_pos);
    this->AD_type = _awardType;
    AdSpeed = 6;
}

void award::awardMove(QPoint _dir)
{
    this->moveBy(_dir.x() * AdSpeed , _dir.y() * AdSpeed);
}
